package io.chenglicun.modules.data.utils;

import cn.hutool.poi.excel.ExcelUtil;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

public class ExcelUtils {

    public static List<List<Object>> praseExcel(InputStream inputStream){
        List<List<Object>> returnList = new ArrayList<>();
        ExcelUtil.readBySax(inputStream, 0, (sheetIndex, rowIndex, list) -> {
            if (rowIndex!=0) {
                returnList.add(list);
            }
        });
        return returnList;
    }
}
